package com.example.demo.mapper;

import com.example.demo.bean.SCustomer;
import com.example.demo.bean.SProduct;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SProduct record);

    SProduct selectByPrimaryKey(Integer id);

    List<SProduct> selectAll();

    int updateByPrimaryKey(SProduct record);

	List<SProduct> selectByName(String name);
	
	int batchDelete(@Param("id") int[] id);
	
}